﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace WpfAGVSystem.Migrations
{
    public partial class _56 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.RenameColumn(
                name: "ModelID",
                table: "AirShowerDoor",
                newName: "ModelRID");

            migrationBuilder.AddColumn<int>(
                name: "StationL",
                table: "Manipulator_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "StationR",
                table: "Manipulator_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<string>(
                name: "Stations",
                table: "Manipulator_Entity",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "Type",
                table: "FullCache_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "ModelLID",
                table: "AirShowerDoor",
                type: "int",
                nullable: false,
                defaultValue: 0);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "StationL",
                table: "Manipulator_Entity");

            migrationBuilder.DropColumn(
                name: "StationR",
                table: "Manipulator_Entity");

            migrationBuilder.DropColumn(
                name: "Stations",
                table: "Manipulator_Entity");

            migrationBuilder.DropColumn(
                name: "Type",
                table: "FullCache_Entity");

            migrationBuilder.DropColumn(
                name: "ModelLID",
                table: "AirShowerDoor");

            migrationBuilder.RenameColumn(
                name: "ModelRID",
                table: "AirShowerDoor",
                newName: "ModelID");
        }
    }
}
